<script setup>
import elSelect from "./select.vue"
import elOption from "./option.vue"
import { ref } from 'vue'

const selected = ref('A')
const options=ref([
   {
     value:"",
     label:"请选择"
   },
   {
     value:"A",
     label:"AA"
   },
   {
     value:"B",
     label:"BB"
   },
   {
     value:"C",
     label:"CC"
   },
])
const handlecag=(value)=>{
   console.log(value,6000)
}

</script>

<template>
  <el-select v-model="selected" @change="handlecag">
  <!-- <el-select :modelValue="selected" @update:modelValue="val=>selected=val" @change="handlecag"> -->
   <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    >
    </el-option>
  </el-select>
</template>